package com.linwen.dataStructure.stack;

public class TestMyStack {
	public static void main(String[] args) {
		MyStack ms = new MyStack(4);
		System.out.println(ms.push(1));
		System.out.println(ms.push(2));
		System.out.println(ms.push(3));
		System.out.println(ms.push(4));
		System.out.println(ms.push(5));
	
		System.out.println(ms.pop());
		
//		print(ms.isEmpty());
//		print(ms.isFull());
//		print(ms.peek());
		while (!ms.isEmpty()) {
			System.out.print(ms.pop()+", ");
		}
		
	}
}
